<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SkyGameEngine2d: AnimationFrame类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="shpe.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">SkyGameEngine2d
   &#160;<span id="projectnumber">0.2</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="#pro-methods">Protected 成员函数</a> &#124;
<a href="class_animation_frame-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">AnimationFrame类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p>动画帧  
 <a href="class_animation_frame.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="_animate_8h_source.html">Animate.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:af9da581313899adf881d6c1578cfa198"><td class="memItemLeft" align="right" valign="top"><a id="af9da581313899adf881d6c1578cfa198"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_animation_frame.html#af9da581313899adf881d6c1578cfa198">~AnimationFrame</a> ()</td></tr>
<tr class="memdesc:af9da581313899adf881d6c1578cfa198"><td class="mdescLeft">&#160;</td><td class="mdescRight">析构 <br /></td></tr>
<tr class="separator:af9da581313899adf881d6c1578cfa198"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1be718c21a7b30b398134b3ee7ac6a8f"><td class="memItemLeft" align="right" valign="top">std::shared_ptr&lt; <a class="el" href="class_sprite_frame.html">SpriteFrame</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_animation_frame.html#a1be718c21a7b30b398134b3ee7ac6a8f">getSpriteFrame</a> () const</td></tr>
<tr class="memdesc:a1be718c21a7b30b398134b3ee7ac6a8f"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取精灵帧  <a href="#a1be718c21a7b30b398134b3ee7ac6a8f">更多...</a><br /></td></tr>
<tr class="separator:a1be718c21a7b30b398134b3ee7ac6a8f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a23fc39c8431712ff5502581c6e5d084e"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_animation_frame.html#a23fc39c8431712ff5502581c6e5d084e">getDealy</a> () const</td></tr>
<tr class="memdesc:a23fc39c8431712ff5502581c6e5d084e"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取这一帧的延迟  <a href="#a23fc39c8431712ff5502581c6e5d084e">更多...</a><br /></td></tr>
<tr class="separator:a23fc39c8431712ff5502581c6e5d084e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:a900ee094f38639bf5166bf20ab1f85ee"><td class="memItemLeft" align="right" valign="top">static AnimationFrameSharedPtr&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_animation_frame.html#a900ee094f38639bf5166bf20ab1f85ee">create</a> (const SpriteFrameSharedPtr &amp;sf, float dealy)</td></tr>
<tr class="memdesc:a900ee094f38639bf5166bf20ab1f85ee"><td class="mdescLeft">&#160;</td><td class="mdescRight">创建一个动画帧  <a href="#a900ee094f38639bf5166bf20ab1f85ee">更多...</a><br /></td></tr>
<tr class="separator:a900ee094f38639bf5166bf20ab1f85ee"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected 成员函数</h2></td></tr>
<tr class="memitem:a7e08308db2fcaef1899440f0d0c46365"><td class="memItemLeft" align="right" valign="top"><a id="a7e08308db2fcaef1899440f0d0c46365"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_animation_frame.html#a7e08308db2fcaef1899440f0d0c46365">AnimationFrame</a> ()</td></tr>
<tr class="memdesc:a7e08308db2fcaef1899440f0d0c46365"><td class="mdescLeft">&#160;</td><td class="mdescRight">构建 <br /></td></tr>
<tr class="separator:a7e08308db2fcaef1899440f0d0c46365"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8e972934a46f3075354dcb907d9b998d"><td class="memItemLeft" align="right" valign="top"><a id="a8e972934a46f3075354dcb907d9b998d"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_animation_frame.html#a8e972934a46f3075354dcb907d9b998d">init</a> (const std::shared_ptr&lt; <a class="el" href="class_sprite_frame.html">SpriteFrame</a> &gt; &amp;sprite_frame, float dealy)</td></tr>
<tr class="memdesc:a8e972934a46f3075354dcb907d9b998d"><td class="mdescLeft">&#160;</td><td class="mdescRight">初始化 <br /></td></tr>
<tr class="separator:a8e972934a46f3075354dcb907d9b998d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>动画帧 </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a900ee094f38639bf5166bf20ab1f85ee"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a900ee094f38639bf5166bf20ab1f85ee">&#9670;&nbsp;</a></span>create()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static AnimationFrameSharedPtr AnimationFrame::create </td>
          <td>(</td>
          <td class="paramtype">const SpriteFrameSharedPtr &amp;&#160;</td>
          <td class="paramname"><em>sf</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>dealy</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>创建一个动画帧 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">const</td><td>SpriteFrameSharedPtr &amp; sf 精灵帧 </td></tr>
    <tr><td class="paramname">float</td><td>dealy 动画的延迟 单位 秒 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>AnimationFrameSharedPtr </dd></dl>

</div>
</div>
<a id="a23fc39c8431712ff5502581c6e5d084e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a23fc39c8431712ff5502581c6e5d084e">&#9670;&nbsp;</a></span>getDealy()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float AnimationFrame::getDealy </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取这一帧的延迟 </p>
<dl class="section return"><dt>返回</dt><dd>float </dd></dl>

</div>
</div>
<a id="a1be718c21a7b30b398134b3ee7ac6a8f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1be718c21a7b30b398134b3ee7ac6a8f">&#9670;&nbsp;</a></span>getSpriteFrame()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::shared_ptr&lt;<a class="el" href="class_sprite_frame.html">SpriteFrame</a>&gt; AnimationFrame::getSpriteFrame </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取精灵帧 </p>
<dl class="section return"><dt>返回</dt><dd>std::shared_ptr&lt;SpriteFrame&gt; </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>C:/code/SkyGameEngine2d/src/action/<a class="el" href="_animate_8h_source.html">Animate.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.15
</small></address>
</body>
</html>
